//
//  Util.h
//  InterventixApp
//
//  Created by Diego Falcinelli on 08/05/13.
//
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <AddressBook/AddressBook.h>
#import <MapKit/MapKit.h>

@interface Util : NSObject
+(NSData*) hexToBytes: (NSString *) s;
+(NSString *) TipologiaInterventoToName:(NSString *) code;
+(NSString *) TipologiaInterventoToCode:(NSString *) name;
+(NSString *) ModalitaInterventoToName:(NSString *) code;
+(NSString *) ModalitaInterventoToCode:(NSString *) name;

+(NSDate *)roundDateToMinutes:(NSDate *)date andMinutes:(int) min;


+(NSNumber *) getNextClienteId;
+(NSNumber *) getNextInterventoId;
+(NSNumber *) getNextDettaglioId;

+(BOOL) isLockBuffer;
+(void) lockBuffer;
+(void) unlockBuffer;

+(void) setCellDefault:(UITableViewCell *)cell;
+(void) setCellModified:(UITableViewCell *)cell;
+(void) setCellNew:(UITableViewCell *)cell;
+(void) setCellDisable:(UITableViewCell *)cell;
+(void) setCellAlert:(UITableViewCell *)cell;



+(void) navigatorTo;
@end
